package com.example.iocdemo;

import java.util.Map;

public class User implements UserDao {
    private String name;
    private Player root;

    public Player getRoot() {
        return root;
    }

    public void setRoot(Player root) {
        this.root = root;
    }

    private int age;
    private Map<String,Integer> dic;

    public User() {
        System.out.println("构造函数");
    }

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Map<String, Integer> getDic() {
        return dic;
    }

    public void setDic(Map<String, Integer> dic) {
        this.dic = dic;
    }
}
